<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<head>
<title><spring:message code="admin.ordersetting.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>

</head>

<body><%@include file="../top_menu.jsp"%>
<table width="100%">
	<tr>
		<td><c:import url="/WEB-INF/jsp/menu/view_orders_menu.jsp" />
		</td>
	</tr>
	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>
</table>
 
		<table border="0" cellpadding="4" cellspacing="1" width="100%">
			<thead>
				<tr>
					<th colspan="9" class="table_title"><spring:message code="admin.ordersetting.label.customfields" /></th>
				</tr>
				<tr>
					<th><spring:message code="admin.ordersetting.label.title" /></th>
					<th><spring:message code="admin.ordersetting.label.type" /></th>
					<th><spring:message code="admin.ordersetting.label.active" /></th>
					<th></th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<c:if test="${empty customFieldList}">
					<tr>
						<td colspan="9"><spring:message code="admin.ordersetting.label.nocustomefieldswerefound" /></td>
					</tr>
				</c:if>
				<c:forEach var="field" items="${customFieldList}" varStatus="i">
					<tr class="tr_record">
						<td>${field.name}</td>
						<td>${field.type}</td>
						<td>${field.active}</td>
						<td><a href="view_orders_settings.htm?id=${field.id}&edit=0"><spring:message code="admin.ordersetting.label.edit" /></a></td>
						<td><a href="view_orders_settings.htm?id=${field.id}&remove"><spring:message code="admin.ordersetting.label.remove" /></a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<form:form action="view_orders_settings.htm" method="post" target="rightFrame">
			<table border="0" cellpadding="4" cellspacing="1">
				<tr>
					<td>
					<input type="submit" class='ui-button ui-state-default ui-corner-all' value="<spring:message code="admin.ordersetting.button.addfield" />" />
					</td>
				</tr>
			</table>
		</form:form> <%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>